﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WFForm.Master" AutoEventWireup="true" CodeBehind="KQApply.aspx.cs" Inherits="WF.Web.Pages.Workflow.KQ.KQApply" %>
<%@ MasterType VirtualPath="~/WFForm.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Title" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Other_head" runat="server">
    <base target="_self"/>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Path" runat="server">
    考勤申请  >><asp:Label ID="lblCurrentActivityName" runat="server" Text="申请"></asp:Label>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Main" runat="server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/Scripts/DatePicker/WdatePicker.js" />
        </Scripts>
    </asp:ScriptManagerProxy>
<div class="inputform" style="width:610px;">
        <asp:FormView ID="FormView1" runat="server" 
        DataSourceID="ObjectDataSource1" DefaultMode="Insert" Width="100%" 
        DataKeyNames="ID" >            
            <InsertItemTemplate>
               <table cellspacing="0" cellpadding="0" width="610" align="center">
				<tr>
					<td height="28">
						<table height="28" cellspacing="0" cellpadding="0" width="610" border="0">
							<tr>
								<td width="2"><img height="1" src="../../../images/space.gif" width="1"></td>
								<td align="center" width="602">
									<table cellspacing="0" cellpadding="0" width="100%" border="0">
										<tr>
											<td style="WIDTH: 230px" align="left"><img id="Logo" alt="" src="../../../images/logo.gif" style="WIDTH: 119px; HEIGHT: 53px" height="64"
													width="168"></td>
											<td style="WIDTH: 34px"><img height="36" src="../../../images/icon.gif" width="34"></td>
											<td><font color="#006600" size="3"><strong>考勤申请单</strong></font></td>
										</tr>
									</table>
								</td>
								<td width="6"><img height="1" src="~/images/space.gif" width="1"></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table cellspacing="0" cellpadding="0" width="605" border="0">
							<tr>
								<td bgcolor="#d9d9d9"><img height="1" src="~/images/space.gif" width="1"></td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td align="left" height="24"><asp:label id="lblErrorDescription" runat="server"></asp:label>&nbsp;</td>
				</tr>
				<tr>
					<td align="left"><asp:panel id="Panel1" runat="server" Height="30px">
					    <p>&nbsp;申请员工域帐号或工号
							<asp:TextBox id="txtDomainAccount" runat="server" CssClass="inputs" ></asp:TextBox>							
                            <asp:RequiredFieldValidator ID="rfvDomainAccount" runat="server" ErrorMessage="请输入" style="color:red"
                                ControlToValidate="txtDomainAccount" EnableClientScript="true" SetFocusOnError="true" Display="Dynamic"/>
                            <asp:Button id="btnSelect" runat="server" CssClass="inputbtn" Text="确  认" 
                                    onclick="btnSelect_Click" ></asp:Button>
                          </p>
						</asp:panel></td>
				</tr>
				<tr >
					<td align="left">
						<%--<table cellSpacing="2" cellPadding="2" width="600" border="0">
							<tr>
								<td align="left">--%>部门
									<asp:TextBox id="txtDeptName" runat="server" ReadOnly="true"  Width="136px" DESIGNTIMEDRAGDROP="290" Text='<%# Bind("DeptName") %>' CssClass="inputs" ></asp:TextBox>
								申请人
								<asp:TextBox id="txtApplyor" runat="server" ReadOnly="true"  Text='<%# Bind("ApplicantName") %>' DESIGNTIMEDRAGDROP="285" Width="97px" CssClass="inputs" ></asp:TextBox>
								申请时间
								<asp:TextBox id="txtRegisterDate" runat="server" ReadOnly="true"  Text='<%# Bind("ApplyRegisterDate") %>' Width="154px" CssClass="inputs" ></asp:TextBox></td>
<%--							</tr>
						</table>
					</td>
				</tr>--%>
				<tr>
					<td align="left">
						<%--<table width="600" border="0">
							<tr>
								<td align="left">--%>本人&nbsp;
									<asp:TextBox id="txtApplyor1" runat="server" CssClass="inputs"  Text='<%# Bind("ApplicantName") %>'
									 ReadOnly="true" DESIGNTIMEDRAGDROP="1891" Width="96px"></asp:TextBox>&nbsp;因&nbsp;
									<asp:TextBox id="txtReason" runat="server" CssClass="inputs" Text='<%# Bind("ApplyReason") %>'
										Width="264px" ></asp:TextBox>&nbsp;申请&nbsp;
									<asp:DropDownList id="ddlApplyTypeCode" runat="server" Width="90px"
									 AutoPostBack="True" onselectedindexchanged="ddlApplyTypeCode_SelectedIndexChanged"></asp:DropDownList>，</td>
<%--							</tr>
						</table>
					</td>--%>
				</tr>
				<tr>
					<td align="left">
					<%--	<table cellSpacing="2" cellPadding="2" width="600" border="0">
							<tr>
								<td align="left">--%>从&nbsp;
									<asp:TextBox id="txtDateFrom" runat="server"  Text='<%# Bind("ApplyDateFrom") %>'
										DESIGNTIMEDRAGDROP="1981" CssClass="inputdates" onfocus="WdatePicker({skin:'whyGreen'})"  Width="80px"></asp:TextBox>日
									<asp:DropDownList id="ddlHourFrom" runat="server" SelectedValue='<%# Bind("HourFrom") %>'>
										<asp:ListItem Value="00">00</asp:ListItem>
										<asp:ListItem Value="01">01</asp:ListItem>
										<asp:ListItem Value="02">02</asp:ListItem>
										<asp:ListItem Value="03">03</asp:ListItem>
										<asp:ListItem Value="04">04</asp:ListItem>
										<asp:ListItem Value="05">05</asp:ListItem>
										<asp:ListItem Value="06">06</asp:ListItem>
										<asp:ListItem Value="07">07</asp:ListItem>
										<asp:ListItem Value="08">08</asp:ListItem>
										<asp:ListItem Value="09" Selected="True">09</asp:ListItem>
										<asp:ListItem Value="10">10</asp:ListItem>
										<asp:ListItem Value="11">11</asp:ListItem>
										<asp:ListItem Value="12">12</asp:ListItem>
										<asp:ListItem Value="13">13</asp:ListItem>
										<asp:ListItem Value="14">14</asp:ListItem>
										<asp:ListItem Value="15">15</asp:ListItem>
										<asp:ListItem Value="16">16</asp:ListItem>
										<asp:ListItem Value="17">17</asp:ListItem>
										<asp:ListItem Value="18">18</asp:ListItem>
										<asp:ListItem Value="19">19</asp:ListItem>
										<asp:ListItem Value="20">20</asp:ListItem>
										<asp:ListItem Value="21">21</asp:ListItem>
										<asp:ListItem Value="22">22</asp:ListItem>
										<asp:ListItem Value="23">23</asp:ListItem>
									</asp:DropDownList>时
									<asp:DropDownList id="ddlMinuteFrom" runat="server" SelectedValue='<%# Bind("MinuteFrom") %>'>
										<asp:ListItem Value="00" Selected="True">00</asp:ListItem>
										<asp:ListItem Value="01">01</asp:ListItem>
										<asp:ListItem Value="02">02</asp:ListItem>
										<asp:ListItem Value="03">03</asp:ListItem>
										<asp:ListItem Value="04">04</asp:ListItem>
										<asp:ListItem Value="05">05</asp:ListItem>
										<asp:ListItem Value="06">06</asp:ListItem>
										<asp:ListItem Value="07">07</asp:ListItem>
										<asp:ListItem Value="08">08</asp:ListItem>
										<asp:ListItem Value="09">09</asp:ListItem>
										<asp:ListItem Value="10">10</asp:ListItem>
										<asp:ListItem Value="11">11</asp:ListItem>
										<asp:ListItem Value="12">12</asp:ListItem>
										<asp:ListItem Value="13">13</asp:ListItem>
										<asp:ListItem Value="14">14</asp:ListItem>
										<asp:ListItem Value="15">15</asp:ListItem>
										<asp:ListItem Value="16">16</asp:ListItem>
										<asp:ListItem Value="17">17</asp:ListItem>
										<asp:ListItem Value="18">18</asp:ListItem>
										<asp:ListItem Value="19">19</asp:ListItem>
										<asp:ListItem Value="20">20</asp:ListItem>
										<asp:ListItem Value="21">21</asp:ListItem>
										<asp:ListItem Value="22">22</asp:ListItem>
										<asp:ListItem Value="23">23</asp:ListItem>
										<asp:ListItem Value="24">24</asp:ListItem>
										<asp:ListItem Value="25">25</asp:ListItem>
										<asp:ListItem Value="26">26</asp:ListItem>
										<asp:ListItem Value="27">27</asp:ListItem>
										<asp:ListItem Value="28">28</asp:ListItem>
										<asp:ListItem Value="29">29</asp:ListItem>
										<asp:ListItem Value="30">30</asp:ListItem>
										<asp:ListItem Value="31">31</asp:ListItem>
										<asp:ListItem Value="32">32</asp:ListItem>
										<asp:ListItem Value="33">33</asp:ListItem>
										<asp:ListItem Value="34">34</asp:ListItem>
										<asp:ListItem Value="35">35</asp:ListItem>
										<asp:ListItem Value="36">36</asp:ListItem>
										<asp:ListItem Value="37">37</asp:ListItem>
										<asp:ListItem Value="38">38</asp:ListItem>
										<asp:ListItem Value="39">39</asp:ListItem>
										<asp:ListItem Value="40">40</asp:ListItem>
										<asp:ListItem Value="41">41</asp:ListItem>
										<asp:ListItem Value="42">42</asp:ListItem>
										<asp:ListItem Value="43">43</asp:ListItem>
										<asp:ListItem Value="44">44</asp:ListItem>
										<asp:ListItem Value="45">45</asp:ListItem>
										<asp:ListItem Value="46">46</asp:ListItem>
										<asp:ListItem Value="47">47</asp:ListItem>
										<asp:ListItem Value="48">48</asp:ListItem>
										<asp:ListItem Value="49">49</asp:ListItem>
										<asp:ListItem Value="50">50</asp:ListItem>
										<asp:ListItem Value="51">51</asp:ListItem>
										<asp:ListItem Value="52">52</asp:ListItem>
										<asp:ListItem Value="53">53</asp:ListItem>
										<asp:ListItem Value="54">54</asp:ListItem>
										<asp:ListItem Value="55">55</asp:ListItem>
										<asp:ListItem Value="56">56</asp:ListItem>
										<asp:ListItem Value="57">57</asp:ListItem>
										<asp:ListItem Value="58">58</asp:ListItem>
										<asp:ListItem Value="59">59</asp:ListItem>
									</asp:DropDownList>分 至&nbsp;
									<asp:TextBox id="txtDateTo" runat="server"  Text='<%# Bind("ApplyDateTo") %>'
										 Width="80px" CssClass="inputdates" onfocus="WdatePicker({skin:'whyGreen'})" ></asp:TextBox>
                                        日
									<asp:DropDownList id="ddlHourTo" runat="server" SelectedValue='<%# Bind("HourTo") %>'>
										<asp:ListItem Value="00">00</asp:ListItem>
										<asp:ListItem Value="01">01</asp:ListItem>
										<asp:ListItem Value="02">02</asp:ListItem>
										<asp:ListItem Value="03">03</asp:ListItem>
										<asp:ListItem Value="04">04</asp:ListItem>
										<asp:ListItem Value="05">05</asp:ListItem>
										<asp:ListItem Value="06">06</asp:ListItem>
										<asp:ListItem Value="07">07</asp:ListItem>
										<asp:ListItem Value="08">08</asp:ListItem>
										<asp:ListItem Value="09">09</asp:ListItem>
										<asp:ListItem Value="10">10</asp:ListItem>
										<asp:ListItem Value="11">11</asp:ListItem>
										<asp:ListItem Value="12">12</asp:ListItem>
										<asp:ListItem Value="13">13</asp:ListItem>
										<asp:ListItem Value="14">14</asp:ListItem>
										<asp:ListItem Value="15">15</asp:ListItem>
										<asp:ListItem Value="16">16</asp:ListItem>
										<asp:ListItem Value="17" Selected="True">17</asp:ListItem>
										<asp:ListItem Value="18">18</asp:ListItem>
										<asp:ListItem Value="19">19</asp:ListItem>
										<asp:ListItem Value="20">20</asp:ListItem>
										<asp:ListItem Value="21">21</asp:ListItem>
										<asp:ListItem Value="22">22</asp:ListItem>
										<asp:ListItem Value="23">23</asp:ListItem>
									</asp:DropDownList>时
									<asp:DropDownList id="ddlMinuteTo" runat="server" SelectedValue='<%# Bind("MinuteTo") %>'>
										<asp:ListItem Value="00">00</asp:ListItem>
										<asp:ListItem Value="01">01</asp:ListItem>
										<asp:ListItem Value="02">02</asp:ListItem>
										<asp:ListItem Value="03">03</asp:ListItem>
										<asp:ListItem Value="04">04</asp:ListItem>
										<asp:ListItem Value="05">05</asp:ListItem>
										<asp:ListItem Value="06">06</asp:ListItem>
										<asp:ListItem Value="07">07</asp:ListItem>
										<asp:ListItem Value="08">08</asp:ListItem>
										<asp:ListItem Value="09">09</asp:ListItem>
										<asp:ListItem Value="10">10</asp:ListItem>
										<asp:ListItem Value="11">11</asp:ListItem>
										<asp:ListItem Value="12">12</asp:ListItem>
										<asp:ListItem Value="13">13</asp:ListItem>
										<asp:ListItem Value="14">14</asp:ListItem>
										<asp:ListItem Value="15">15</asp:ListItem>
										<asp:ListItem Value="16">16</asp:ListItem>
										<asp:ListItem Value="17">17</asp:ListItem>
										<asp:ListItem Value="18">18</asp:ListItem>
										<asp:ListItem Value="19">19</asp:ListItem>
										<asp:ListItem Value="20">20</asp:ListItem>
										<asp:ListItem Value="21">21</asp:ListItem>
										<asp:ListItem Value="22">22</asp:ListItem>
										<asp:ListItem Value="23">23</asp:ListItem>
										<asp:ListItem Value="24">24</asp:ListItem>
										<asp:ListItem Value="25">25</asp:ListItem>
										<asp:ListItem Value="26">26</asp:ListItem>
										<asp:ListItem Value="27">27</asp:ListItem>
										<asp:ListItem Value="28">28</asp:ListItem>
										<asp:ListItem Value="29">29</asp:ListItem>
										<asp:ListItem Value="30" Selected="True">30</asp:ListItem>
										<asp:ListItem Value="31">31</asp:ListItem>
										<asp:ListItem Value="32">32</asp:ListItem>
										<asp:ListItem Value="33">33</asp:ListItem>
										<asp:ListItem Value="34">34</asp:ListItem>
										<asp:ListItem Value="35">35</asp:ListItem>
										<asp:ListItem Value="36">36</asp:ListItem>
										<asp:ListItem Value="37">37</asp:ListItem>
										<asp:ListItem Value="38">38</asp:ListItem>
										<asp:ListItem Value="39">39</asp:ListItem>
										<asp:ListItem Value="40">40</asp:ListItem>
										<asp:ListItem Value="41">41</asp:ListItem>
										<asp:ListItem Value="42">42</asp:ListItem>
										<asp:ListItem Value="43">43</asp:ListItem>
										<asp:ListItem Value="44">44</asp:ListItem>
										<asp:ListItem Value="45">45</asp:ListItem>
										<asp:ListItem Value="46">46</asp:ListItem>
										<asp:ListItem Value="47">47</asp:ListItem>
										<asp:ListItem Value="48">48</asp:ListItem>
										<asp:ListItem Value="49">49</asp:ListItem>
										<asp:ListItem Value="50">50</asp:ListItem>
										<asp:ListItem Value="51">51</asp:ListItem>
										<asp:ListItem Value="52">52</asp:ListItem>
										<asp:ListItem Value="53">53</asp:ListItem>
										<asp:ListItem Value="54">54</asp:ListItem>
										<asp:ListItem Value="55">55</asp:ListItem>
										<asp:ListItem Value="56">56</asp:ListItem>
										<asp:ListItem Value="57">57</asp:ListItem>
										<asp:ListItem Value="58">58</asp:ListItem>
										<asp:ListItem Value="59">59</asp:ListItem>
									</asp:DropDownList>分
									<asp:button id="btnCount" runat="server" CssClass="inputbtn" Text="计算天数" 
                                                DESIGNTIMEDRAGDROP="208" onclick="btnCount_Click" ></asp:button><%--</td>
							</tr>
						</table>--%>
					</td>
				</tr>
				<TR>
					<%--<td align="left">
						<table cellSpacing="2" cellPadding="2" width="600" border="0">
							<tr>--%>
								<td align="left">共&nbsp;
									<asp:TextBox id="txtApplyDays" runat="server"  Text='<%# Bind("ApplyDays") %>'
									DESIGNTIMEDRAGDROP="1983" Width="72px" CssClass="inputs" ReadOnly="true"></asp:TextBox>天， 
									（&nbsp;
									<asp:TextBox id="txtApplyHours" runat="server" CssClass="inputs"  Text='<%# Bind("ApplyHours") %>' Width="72px" Font-Italic="True" ReadOnly="true"></asp:TextBox>小时）， 请批准。
                                    </td>
							<%--</tr>
						</table>
					</td>--%>
				</TR>
				<tr>
					<td>
						<asp:Panel id="pnlWJDK" runat="server" Visible="false">&nbsp;忘记打卡证明人： 
<asp:TextBox id="txtProvePersonAccount" runat="server" CssClass="textfield" Text='<%# Bind("ProvePersonAccount") %>'
								Width="136px"></asp:TextBox>&nbsp;（<FONT color="red">请正确填写证明人的公司域帐号，证明人只能填写一个</FONT>）</asp:Panel></td>
				</tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="lnkUpload" runat="server" CssClass="bluelink">上传附件</asp:HyperLink>&nbsp;&nbsp;&nbsp;&nbsp;<asp:HyperLink ID="lnkView" runat="server" CssClass="bluelink">查看附件</asp:HyperLink>
                    </td>
                </tr>
				<tr>
					<td align="left">
						<asp:Label id="lblInitCardTimes" runat="server"></asp:Label></td>
				</tr>
				<tr>
					<td align="left" height="24">
						<asp:Label id="lblHospitalDisplay" runat="server" ForeColor="Green"></asp:Label>&nbsp;</td>
				</tr>
				<tr>
					<td align="center">&nbsp;</td>
				</tr>
				<tr>
					<td align="center"><IMG height="7" src="../../../images/3.gif" width="610"></td>
				</tr>
                <tr><td>
                <asp:HiddenField ID="txtDateTimeFrom" runat="server" Value='<%# Bind("DateTimeFrom") %>' />
                <asp:HiddenField ID="txtDateTimeTo" runat="server" Value='<%# Bind("DateTimeTo") %>' />
                <asp:HiddenField ID="txtEmptLevel" runat="server" Value='<%# Bind("EmpLevel") %>' />
                <asp:HiddenField ID="txtFolio" runat="server" Value='<%# Bind("Folio") %>' />
               <%-- <asp:HiddenField ID="txtHolidayTypeCode" runat="server" Value='<%# Bind("HolidayTypeCode") %>' />
                <asp:HiddenField ID="txtHolidaTypeSubCode" runat="server" Value='<%# Bind("HolidayTypeSubCode") %>' />--%>
                <asp:HiddenField ID="txtFlowID" runat="server" Value='<%# Bind("ID") %>' />
                <asp:HiddenField ID="txtHolidayTypeName" runat="server" Value='<%# Bind("HoliDayTypeName") %>' />
                <asp:HiddenField ID="txtHolidayTypeSubName" runat="server" Value='<%# Bind("HoliDayTypeSubName") %>' />
                <asp:HiddenField ID="txtWorkflowType" runat="server" Value='<%# Bind("HoliDayTypeCode") %>' />
                <asp:HiddenField ID="txtWorkflowTypeSub" runat="server" Value='<%# Bind("HolidayTypeSubCode") %>' />
                <asp:HiddenField ID="txtApplyorAccount" runat="server" Value='<%# Bind("ApplyAccount") %>' />
                <asp:HiddenField ID="txtAuditorPositionID" runat="server" Value='<%# Bind("AuditorPositionID") %>' />
                <asp:HiddenField ID="txtRegisterAccount" runat="server" />
                <asp:HiddenField ID="txtRegisterName" runat="server" />
                <asp:HiddenField ID="txtFullQQBillDays" runat="server" Visible="false" />
                <asp:HiddenField ID="txtEmail" runat="server" Value='<%# Bind("Email") %>' />
                <asp:HiddenField ID="txtHolidayIdentify" runat="server" Value='<%# Bind("HolidayIdentify") %>' />
                <asp:HiddenField ID="txtDeptCode" runat="server" Value='<%# Bind("DeptCode") %>' />
                </td></tr>
			</table>                         
            </InsertItemTemplate>       

            <FooterTemplate>                
                <center><br /><asp:Button ID="btnSubmit" Text="提交" runat="server" CommandName="Insert" CssClass="inputbtn" Enabled="false"/>
                        </center>
            </FooterTemplate>            
        </asp:FormView>        
    </div>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
        DataObjectTypeName="WF.Model.KQApplyEntity" InsertMethod="AddKQApply" 
        SelectMethod="GetEmptyEntity" 
        
        TypeName="WF.ViewModels.Workflow.KQApply.KQApplyVM" 
        oninserted="ObjectDataSource1_Inserted" ></asp:ObjectDataSource>
</asp:Content>
